package com.bjx.system.service;

import com.bjx.system.domain.entity.RoleMenuEntity;

import java.util.List;

/**
 * @desc: 角色菜单关联服务接口
 * @author: liushuai
 * @date: 2022/10/14
 */
public interface IRoleMenuService {


    /**
     * 根据角色id查询菜单末尾节点列表
     * @param roleId
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.bjx.system.domain.vo.RoleMenuVO>
     * @Author: liushuai
     * @Date: 2022/10/14 21:31
     */
    List<String> listRoleMenuIdSon(Long roleId);

    /**
     * 根据角色id删除角色权限关联
     * @param roleMenuEntities
     * @param roleId
     * @Author: liushuai
     * @Date: 2022/10/14 21:30
     */
    void insertRoleMenuBatch(List<RoleMenuEntity> roleMenuEntities, Long roleId);

    /**
     * 根据角色Id删除角色菜单关联
     * @param roleId
     * @return: R
     * @Author: liushuai
     * @Date:  2022/10/14
     */
    void deleteRoleMenuByRoleId(Long roleId);
}
